<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <link href="__PUBLIC__/app/admin/css/public.css" rel="stylesheet" type="text/css">
<link href="__PUBLIC__/app/admin/css/page.css" rel="stylesheet" type="text/css">
<link href="__PUBLIC__/js/layer/skin/layer.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="__PUBLIC__/app/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/app/admin/js/global.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/layer/layer.js"></script>
</head>
<body style="text-align:center;">
<div style="margin-top: 100px">
<eq name="list.idcard" value="">
暂无上传资料
<else/>
 <div>
  <div>
    <h3 class="layui-bg-cyan">真实姓名：<span style="color:blue">{$list.name}</span></h3>
    <h3 class="layui-bg-cyan">身份证号码：<span style="color:blue">{$list.idcard}</span></h3>
  </div>
  <div><h3 class="layui-bg-cyan">身份证正面: <img  src="{$list.z_card}" alt="" style="width: 300px; height:200px "><h3>
  </div>
   <div><h3 class="layui-bg-cyan">身份证背面: <img src="{$list.f_card}" alt="" style="width: 300px; height:200px "><h3>
  </div>

 
             <td>
              <eq name="list.id_authentication" value="0">
                <input class="btn" type="submit" onclick='yes({$list.member_id})' value="通过审核">
                <input class="btn" type="submit" onclick='no({$list.member_id})' value="无法通过">
              </eq>
              <eq name="list.id_authentication" value="1">
               审核成功
              </eq>
               <eq name="list.id_authentication" value="2">
                审核失败
              </eq>
            </td>
  </div>
</eq>
</div>

</body>
</html>
<script>
  //审核
    function yes(id){
    var url="{:U('Member/yesexamine')}";
       $.post(url,{'member_id':id},function(data){
         layer.msg(data.info);
           if(data.status==1){
               setTimeout(function () { 
                 window.location.reload();
            }, 2000);
          }
       });
}

    function no(id){
    var url="{:U('Member/noexamine')}";
       $.post(url,{'member_id':id},function(data){
         layer.msg(data.info);
           if(data.status==1){
               setTimeout(function () { 
                 window.location.reload();
            }, 2000);
          }
       });
}
</script>
